using System;
using System.Collections.Generic;
using System.Text;

namespace Impact.Views
{
    /// <summary>
    /// this interface characterizes a user control as one that will be presenting
    /// content on a view, and is used by the presenter to assign data to the control.
    /// </summary>
    public interface IContentControl
    {

        /// <summary>
        /// sets an object to be the datasource for this control
        /// the control will know how to cast and use the object, but it may be 
        /// different depending on what the control does
        /// </summary>
        object DataSource
        {
            set;
        }

        /// <summary>
        /// called to perform initialization before the control loads
        /// </summary>
        void PreInit();

    }
}
